<%-- 
    Document   : capnhattk
    Created on : Feb 14, 2012, 8:47:57 PM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Beans.*,java.util.Vector,Models.*"%>
<%
            
            if (session.getAttribute("nv") == null) {
                response.sendRedirect("../index.jsp");
                return;
            }
            if (session.getAttribute("langid") == null) {
                response.sendRedirect("../index.jsp");
                return;
            }
            NhanVien nv = (NhanVien) session.getAttribute("nv");
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <%
                int langid = (Integer) session.getAttribute("langid"); // ngôn ngữ hiện tại
                String dsts = " 'accep', 'save', 'phonenumber', 'address', 'newpass', 'nameofuser'";
                ThamSoHT[] mdsts = ThamSoHT_Model.DSThamSo(dsts, langid); // mảng chứa các tham số của trang này.
                String accep = mdsts[0].getTenTS();
                String address = mdsts[1].getTenTS();
                String nameofuser = mdsts[2].getTenTS();
                String newpass = mdsts[3].getTenTS();
                String phonenumber = mdsts[4].getTenTS();
                String save = mdsts[5].getTenTS();
    %>
                            <div>
                                <div style=" width: 120px; margin-left: 15px; font-size: 13px; padding-left: 5px;"><%=nameofuser%></div>
                                <input style=" width: 150px;margin-left: 15px; margin-top: 8px;" type="text" id="cptennv" name="tennv" value="<%=NhanVien_Model.LayTenNV(nv.getMaNV()) %>" >
                            </div>
                            <div>
                                <div style=" width: 120px; margin-left: 15px; font-size: 13px;padding-left: 5px;"><%=newpass%></div>
                                <input style=" width: 150px; margin-left: 15px; margin-top: 8px;" type="text" id="cpnewpass" name="newpass" >
                            </div>
                            <div>
                                <div style=" width: 120px; margin-left: 15px; font-size: 13px;padding-left: 5px;"><%=address%></div>
                                <input style=" width: 150px; margin-left: 15px; margin-top: 8px;" type="text" id="cpdiachi" name="diachi" value="<%=NhanVien_Model.LayDiaChi(nv.getMaNV()) %>">
                            </div>
                            <div>
                                <div style=" width: 120px; margin-left: 15px; font-size: 13px;padding-left: 5px;"><%=phonenumber%></div>
                                <input style=" width: 150px; margin-left: 15px; margin-top: 8px;" type="text" id="cpsodt" name="sodt" onkeypress="return keypress(event)" value="<%=NhanVien_Model.LaySoDT(nv.getMaNV()) %> " >
                            </div>
                            <input style=" margin-left: 50px;margin-top: 10px;" class="button" type="button"  value="<%=save%>" onclick="LuuCapNhatTK('<%=nv.getMaNV()%>','<%=accep%>')">
    </body>
</html>
